// file: 	cs-alt-legprof.do
// purpose: replace Bowen and Greene scores with leg prof component scores;
// 			model results reported in Table OA 6.


*rescale for presentation purposes
replace expend = expend/100
replace slength = slength/100

quietly meologit opst expend salary_real slength i.year ||fips:
	
	estimates store m1_legprof
	
quietly meologit opst lncs expend salary_real slength i.year ||fips:
	
	estimates store m1_legprof_cs	

quietly meologit opst lncs opfed c.percapincreal unemployment debt_net_pc_real pct_ba ///
	pct_black pct_hisp pct_rural expend salary_real slength h_diffs  ///
	r_male c.r_age##c.r_age r_educ r_hisp r_black ///
	c.hou_majority##c.partyid c.policy##c.partyid c.unified_gov##c.partyid i.year ||fips:
	
	estimates store m2_legprof_a
	
quietly meologit opst lncs opfed c.percapincreal unemployment debt_net_pc_real pct_ba ///
	pct_black pct_hisp pct_rural expend h_diffs  ///
	r_male c.r_age##c.r_age r_educ r_hisp r_black ///
	c.hou_majority##c.partyid c.policy##c.partyid c.unified_gov##c.partyid i.year ||fips:
	
	estimates store m2_legprof_b
	
quietly meologit opst lncs opfed c.percapincreal unemployment debt_net_pc_real pct_ba ///
	pct_black pct_hisp pct_rural salary_real h_diffs  ///
	r_male c.r_age##c.r_age r_educ r_hisp r_black ///
	c.hou_majority##c.partyid c.policy##c.partyid c.unified_gov##c.partyid i.year ||fips:
	
	estimates store m2_legprof_c
	
quietly meologit opst lncs opfed c.percapincreal unemployment debt_net_pc_real pct_ba ///
	pct_black pct_hisp pct_rural slength h_diffs  ///
	r_male c.r_age##c.r_age r_educ r_hisp r_black ///
	c.hou_majority##c.partyid c.policy##c.partyid c.unified_gov##c.partyid i.year ||fips:
	
	estimates store m2_legprof_d
	
esttab m1_legprof m1_legprof_cs m2_legprof_b m2_legprof_c m2_legprof_d m2_legprof_a using tableOA6.txt, cells("b(fmt(3) star)" "se(fmt(3) par)") ///
	starlevels(+ .1 * .05 ** .01) tex stats(N aic bic) style(tex) ///
	label nolz drop(199*.year 20*.year) ///
	order(lncs lncssen lnpop size_low c.lnpop#c.size_low c.lnpop#c.size_up policy unified_gov ///
	hou_majority h_diffs expend salary_real slength unemployment percapincreal debt_net_pc_real ///
	pct_ba pct_black pct_hisp pct_rural opfed partyid c.policy#c.partyid c.unified_gov#c.partyid ///
	c.hou_majority#c.partyid  ///
	r_male r_educ r_age c.r_age#c.r_age r_black r_hisp)  replace
	
	
	

	